﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://automator.codeplex.com/workflow" id="Workflow" xmlns="http://automator.codeplex.com/workflow">
    <xs:element name="Workflow">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Tasks" maxOccurs="1" minOccurs="1">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="Task" maxOccurs="unbounded">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="TaskAttributes" maxOccurs="1" minOccurs="1">
                                            <xs:complexType>
                                                <xs:sequence>
                                                    <xs:element name="TaskAttribute" maxOccurs="unbounded">
                                                        <xs:complexType>
                                                            <xs:attribute name="Name" type="xs:string" use="required" />
                                                            <xs:attribute name="Value" type="xs:string" use="required" />
                                                        </xs:complexType>
                                                    </xs:element>
                                                </xs:sequence>
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element name="DependentTasks" maxOccurs="1" minOccurs="1"/>
                                    </xs:sequence>
                                    <xs:attribute name="Type" type="xs:string" use="required" />
                                    <xs:attribute name="IsActive" type="xs:boolean" use="required" />
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="Variables" maxOccurs="1" minOccurs="1"/>
            </xs:sequence>
            <xs:attribute name="Id" type="xs:string" use="required" />
        </xs:complexType>
    </xs:element>
</xs:schema>